testtreelistmodel: Make the directory loading async
authorBenjamin Otte <otte@redhat.com>
Wed, 12 Sep 2018 03:04:17 +0000 (05:04 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Sep 2018 16:50:17 +0000 (18:50 +0200)
commitfcb780ee134b4f014641d07f88833f0a3b086092
treea2f85065afcbfc1f552065b51f38b2e0fb221624
parent65b795b86121b1ca904aa6486bfc138d92ed0568
testtreelistmodel: Make the directory loading async

This is way more complicated than it should be, because it requires
manually limiting the number of open file enumerators.

On the other hand, it exhaustively tests the items-changed emission of
all involved listmodels because those signals come in pretty much
randomly.

It's also 50% slower than the sync version, with the caeat that the sync
version only shows the UI after it's done loading, while this version
shows it right away.
tests/testtreelistmodel.c